import request from '@/router/axios';

/**
 *首件不良
 */
export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-product/qms-inspection-document/page?statusStr=2',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};
export const getDetail = (id) => {
  return request({
    url: '/api/mes-product/qms-inspection-document/detail-by-id',
    method: 'get',
    params: {
      id
    }
  });
};
export const submitBad = (data) => {
  return request({
    url: '/api/mes-product/qms-inspection-document/submit-bad-result',
    method: 'post',
    data: data
  });
};

export const getListuserpage = (current, size) => {
  return request({
    url: '/api/blade-system/user/page',
    method: 'get',
    params: {
      current,
      size
    }
  });
};
export const getListPage = (current, size, params) => {
  return request({
    url: '/api/mes-product/process/workorder-route/get-by-wo',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};
